package com.bw.shoppingmall.mvvm.model;


import com.bw.mvvm_comom.entity.BaseEntity;
import com.bw.mvvm_comom.model.BaseModel;
import com.bw.mvvm_comom.network.HttpEnum;
import com.bw.mvvm_comom.network.HttpFactory;

import java.util.HashMap;

import io.reactivex.Observable;

public class SplashModel extends BaseModel {
    public Observable<BaseEntity> requestToken(HashMap<String,Object> map){
        return changeFunc(HttpFactory.create(HttpEnum.Sign)
                .getRetrofit()
                .create(Api.class).requestToken(createBody(map)));
    }
}
